package com.cn.star.java8;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MyAnnotation {
	
	String username() default "zhangsan";
    String password() default "123456";
}

class Test11{
		
	@MyAnnotation(username="dd",password="2222")
	void saveHello(){}
	
}